<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>FLITr: include/flitr/shared_image_buffer.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">FLITr
   &#160;<span id="projectnumber">1.x</span>
   </div>
   <div id="projectbrief">Framework for Live Image Transformation.</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('shared__image__buffer_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">shared_image_buffer.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="shared__image__buffer_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/* Framework for Live Image Transformation (FLITr) </span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2010 CSIR</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This file is part of FLITr.</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * FLITr is free software: you can redistribute it and/or modify it</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * under the terms of the GNU Lesser General Public License as</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * published by the Free Software Foundation, either version 3 of the</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * License, or (at your option) any later version.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * FLITr is distributed in the hope that it will be useful, but</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * Lesser General Public License for more details.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * You should have received a copy of the GNU Lesser General Public</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * License along with FLITr. If not, see</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#ifndef SHARED_IMAGE_BUFFER_H</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define SHARED_IMAGE_BUFFER_H 1</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="image_8h.html">flitr/image.h</a>&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &lt;OpenThreads/ScopedLock&gt;</span></div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &lt;OpenThreads/Mutex&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &lt;boost/tr1/memory.hpp&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">namespace </span>flitr {</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">class </span>ImageConsumer;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">class </span>ImageProducer;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="code" href="shared__image__buffer_8h.html#aac634152527964baab3ef9b764174e68">   39</a></span>&#160;<span class="preprocessor">#define FLITR_DEFAULT_SHARED_BUFFER_NUM_SLOTS 32</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html">   63</a></span>&#160;<span class="keyword">class </span><a class="code" href="flitr__export_8h.html#a954cc8ba3eaae88472e9d8f406ca4a86">FLITR_EXPORT</a> <a class="code" href="classflitr_1_1_shared_image_buffer.html" title="Class for passing images between producers and consumers.">SharedImageBuffer</a> {</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <a class="code" href="classflitr_1_1_shared_image_buffer.html" title="Class for passing images between producers and consumers.">SharedImageBuffer</a>(<a class="code" href="classflitr_1_1_image_producer.html">ImageProducer</a>&amp; my_producer, </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                      uint32_t num_slots, </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;                      uint32_t images_per_slot);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    ~<a class="code" href="classflitr_1_1_shared_image_buffer.html" title="Class for passing images between producers and consumers.">SharedImageBuffer</a>();</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keywordtype">bool</span> initWithStorage();</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordtype">bool</span> initWithoutStorage();</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    </div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment">//=== Start of the Producer Methods ===//</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment">//=====================================//</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="comment">//One could possibly make use of an abstract interface class to encapsulate </span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="comment">//the producer interface.</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    </div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keyword">virtual</span> uint32_t getNumWriteSlotsAvailable() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    <span class="keyword">virtual</span> std::vector&lt;Image**&gt; reserveWriteSlot();</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="comment">//virtual std::vector&lt;Image**&gt; getWritable();</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="comment">//ToDo: We could also add a reserveWriteSlots(n) method that reserves n slots!</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    </div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> releaseWriteSlot();</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="comment">//virtual void pushWritable();</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    </div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="comment">//ToDo: We could also add a releaseWriteSlots(n) method that releases n slots!</span></div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    </div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keyword">virtual</span> uint32_t getLeastNumReadSlotsAvailable();</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    </div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    </div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="comment">//=== Start of the Consumer Methods ===//</span></div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;<span class="comment">//=====================================//</span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    <span class="comment">//One could possibly make use of an abstract interface class to encapsulate </span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="comment">//the consumer interface.</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    </div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keyword">virtual</span> uint32_t getNumReadSlotsAvailable(<span class="keyword">const</span> <a class="code" href="classflitr_1_1_image_consumer.html">ImageConsumer</a>&amp; consumer);</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;    <span class="comment">//virtual uint32_t getNumReadable(const ImageConsumer&amp; consumer);</span></div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keyword">virtual</span> uint32_t getNumReadSlotsReserved(<span class="keyword">const</span> <a class="code" href="classflitr_1_1_image_consumer.html">ImageConsumer</a>&amp; consumer);</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <span class="comment">//virtual uint32_t getNumReadableBusy(const ImageConsumer&amp; consumer);</span></div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    <span class="keyword">virtual</span> std::vector&lt;Image**&gt; reserveReadSlot(<span class="keyword">const</span> <a class="code" href="classflitr_1_1_image_consumer.html">ImageConsumer</a>&amp; consumer);</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="comment">//virtual std::vector&lt;Image**&gt; getReadable(const ImageConsumer&amp; consumer);</span></div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="comment">//ToDo: We could also add a reserveReadSlots(..., n) method that reserves n slots!</span></div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;    </div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> releaseReadSlot(<span class="keyword">const</span> <a class="code" href="classflitr_1_1_image_consumer.html">ImageConsumer</a>&amp; consumer);</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="comment">//virtual void popReadable(const ImageConsumer&amp; consumer);</span></div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;    <span class="comment">//ToDo: We could also add a releaseReadSlots(..., n) method that releases n slots!</span></div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;    </div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        </div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> addConsumer(<a class="code" href="classflitr_1_1_image_consumer.html">ImageConsumer</a>&amp; consumer);</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;  <span class="keyword">private</span>:</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <span class="keywordtype">bool</span> isFull() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    uint32_t getFill() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="keywordtype">bool</span> tailPopped(<span class="keyword">const</span> <a class="code" href="classflitr_1_1_image_consumer.html">ImageConsumer</a>&amp; consumer);</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;</div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    uint32_t numAvailable(<span class="keyword">const</span> <a class="code" href="classflitr_1_1_image_consumer.html">ImageConsumer</a>&amp; consumer);</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div>
<div class="line"><a name="l00250"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html#a275b68995a2927046b745c581131f4a5">  250</a></span>&#160;    <a class="code" href="classflitr_1_1_image_producer.html">ImageProducer</a> *<a class="code" href="classflitr_1_1_shared_image_buffer.html#a275b68995a2927046b745c581131f4a5" title="The producer we are a member of.">ImageProducer_</a>;</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;                </div>
<div class="line"><a name="l00253"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html#ad20334fc4ef275986c4e67be4e662ac1">  253</a></span>&#160;    OpenThreads::Mutex <a class="code" href="classflitr_1_1_shared_image_buffer.html#ad20334fc4ef275986c4e67be4e662ac1" title="Protects read and write positions.">BufferMutex_</a>;</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;</div>
<div class="line"><a name="l00256"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html#aed412326e79260b65385ee085682d9c8">  256</a></span>&#160;    uint32_t <a class="code" href="classflitr_1_1_shared_image_buffer.html#aed412326e79260b65385ee085682d9c8" title="The number of slots in the buffer.">NumSlots_</a>;</div>
<div class="line"><a name="l00258"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html#a7ea53da89e210b91832f1b36bb3c368b">  258</a></span>&#160;    uint32_t <a class="code" href="classflitr_1_1_shared_image_buffer.html#a7ea53da89e210b91832f1b36bb3c368b" title="Number of images in each slot of the buffer.">ImagesPerSlot_</a>;</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                </div>
<div class="line"><a name="l00261"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html#a00bf09efefa475ac09b8f57585f44d04">  261</a></span>&#160;    uint32_t <a class="code" href="classflitr_1_1_shared_image_buffer.html#a00bf09efefa475ac09b8f57585f44d04" title="One past where we have already written.">WriteTail_</a>;</div>
<div class="line"><a name="l00263"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html#ae50f18394ddc6e071a0680181a0051d9">  263</a></span>&#160;    uint32_t <a class="code" href="classflitr_1_1_shared_image_buffer.html#ae50f18394ddc6e071a0680181a0051d9" title="Point where we are about to write.">WriteHead_</a>;</div>
<div class="line"><a name="l00265"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html#a3451b7400d02e765fffb3421141360c8">  265</a></span>&#160;    uint32_t <a class="code" href="classflitr_1_1_shared_image_buffer.html#a3451b7400d02e765fffb3421141360c8" title="How many slots have been reserved for writing.">NumWriteReserved_</a>;</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;</div>
<div class="line"><a name="l00268"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html#a96f00d00633744cab0134509217be32e">  268</a></span>&#160;    std::map&lt; const ImageConsumer*, uint32_t &gt; <a class="code" href="classflitr_1_1_shared_image_buffer.html#a96f00d00633744cab0134509217be32e" title="Map of consumers to one past where they have completed reading.">ReadTails_</a>;</div>
<div class="line"><a name="l00270"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html#a1293e90f99e0414ae04baab938532eb5">  270</a></span>&#160;    std::map&lt; const ImageConsumer*, uint32_t &gt; <a class="code" href="classflitr_1_1_shared_image_buffer.html#a1293e90f99e0414ae04baab938532eb5" title="Map of consumers to where they are about to read.">ReadHeads_</a>;</div>
<div class="line"><a name="l00272"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html#a42642938824de5506c0705f73afbfce2">  272</a></span>&#160;    std::map&lt; const ImageConsumer*, uint32_t &gt; <a class="code" href="classflitr_1_1_shared_image_buffer.html#a42642938824de5506c0705f73afbfce2" title="Map of consumers to the number of read slots reserved.">NumReadReserved_</a>;</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;</div>
<div class="line"><a name="l00275"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html#a5d6eda5c6b72893dcd44a07f6be46814">  275</a></span>&#160;    std::vector&lt; std::vector&lt; Image* &gt; &gt; <a class="code" href="classflitr_1_1_shared_image_buffer.html#a5d6eda5c6b72893dcd44a07f6be46814" title="The actual ring buffer. Contains only pointers.">Buffer_</a>;</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;</div>
<div class="line"><a name="l00279"></a><span class="lineno"><a class="code" href="classflitr_1_1_shared_image_buffer.html#a4cf42f427a3eac7b1d0c8974b074a550">  279</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classflitr_1_1_shared_image_buffer.html#a4cf42f427a3eac7b1d0c8974b074a550">HasStorage_</a>;</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;};</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;}</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;<span class="preprocessor">#endif //SHARED_IMAGE_BUFFER_H</span></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_5439e23e71bfff00a4bb4e3e77d969de.html">include</a></li><li class="navelem"><a class="el" href="dir_8ba83f5bebe387d07fd59c14a8974e49.html">flitr</a></li><li class="navelem"><a class="el" href="shared__image__buffer_8h.html">shared_image_buffer.h</a></li>
    <li class="footer">Generated on Thu Dec 6 2012 09:15:44 for FLITr by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.2 </li>
  </ul>
</div>
</body>
</html>
